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');
88// Specifically here, V8 may cache compiled scripts between the flip of the
99// flag. We use a different script each time to work around this problem.
1010v8 . 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)' ) ) ;
1313
1414v8 . setFlagsFromString ( '--noallow_natives_syntax' ) ;
15- assert . throws ( function ( ) { eval ( '%_IsSmi (44)' ) ; } ,
15+ assert . throws ( function ( ) { eval ( '%IsSmi (44)' ) ; } ,
1616 / ^ 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)' ) ; } ,
1818 / ^ 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