File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -8,11 +8,11 @@ const vm = require('vm');
8
8
// Specifically here, V8 may cache compiled scripts between the flip of the
9
9
// flag. We use a different script each time to work around this problem.
10
10
v8 . setFlagsFromString ( '--allow_natives_syntax' ) ;
11
- assert ( eval ( '%_IsSmi (42)' ) ) ;
12
- assert ( vm . runInThisContext ( '%_IsSmi (43)' ) ) ;
11
+ assert ( eval ( '%IsSmi (42)' ) ) ;
12
+ assert ( vm . runInThisContext ( '%IsSmi (43)' ) ) ;
13
13
14
14
v8 . setFlagsFromString ( '--noallow_natives_syntax' ) ;
15
- assert . throws ( function ( ) { eval ( '%_IsSmi (44)' ) ; } ,
15
+ assert . throws ( function ( ) { eval ( '%IsSmi (44)' ) ; } ,
16
16
/ ^ S y n t a x E r r o r : U n e x p e c t e d t o k e n ' % ' $ / ) ;
17
- assert . throws ( function ( ) { vm . runInThisContext ( '%_IsSmi (45)' ) ; } ,
17
+ assert . throws ( function ( ) { vm . runInThisContext ( '%IsSmi (45)' ) ; } ,
18
18
/ ^ S y n t a x E r r o r : U n e x p e c t e d t o k e n ' % ' $ / ) ;
You can’t perform that action at this time.
0 commit comments