MCPcopy Create free account
hub / github.com/nodejs/node / strict1

Function strict1

deps/v8/test/mjsunit/strict-mode-eval.js:44–89  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

42eval_alias(code4);
43
44function strict1() {
45 var exception = false;
46 try {
47 eval(code1);
48 } catch (e) {
49 exception = true;
50 assertInstanceof(e, SyntaxError);
51 }
52 assertTrue(exception);
53
54 function strict2() {
55 var exception = false;
56 try {
57 eval(code2);
58 } catch (e) {
59 exception = true;
60 assertInstanceof(e, SyntaxError);
61 }
62 assertTrue(exception);
63
64 function strict3() {
65 var exception = false;
66 try {
67 eval(code3);
68 } catch (e) {
69 exception = true;
70 assertInstanceof(e, SyntaxError);
71 }
72 assertTrue(exception);
73
74 function strict4() {
75 var exception = false;
76 try {
77 eval(code4);
78 } catch (e) {
79 exception = true;
80 assertInstanceof(e, SyntaxError);
81 }
82 assertTrue(exception);
83 }
84 strict4();
85 }
86 strict3();
87 }
88 strict2();
89}
90strict1();

Callers 1

Calls 4

assertInstanceofFunction · 0.85
strict2Function · 0.85
evalFunction · 0.70
assertTrueFunction · 0.70

Tested by

no test coverage detected