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

Function test1

deps/v8/test/webkit/regexp-literals-arent-constants.js:33–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31}
32
33function test1() {
34 for (var i = 0; i < 2; i++) {
35 currentRegExp = /a/;
36 if (i)
37 shouldBeFalse("currentRegExp === lastRegExp");
38 lastRegExp = currentRegExp;
39 }
40}
41test1();
42
43function returnRegExpLiteral() { return /a/ }

Calls 1

shouldBeFalseFunction · 0.50

Tested by

no test coverage detected