PageRenderTime 16ms CodeModel.GetById 9ms app.highlight 3ms RepoModel.GetById 2ms app.codeStats 0ms

/js/src/jit-test/tests/basic/regexp-multiline.js

http://github.com/zpao/v8monkey
JavaScript | 12 lines | 9 code | 2 blank | 1 comment | 1 complexity | 4a4c2e39bf7226181c11e6a0366d190f MD5 | raw file
 1// visibility of updates to RegExp.multiline
 2
 3function foo(value) {
 4  for (var i = 0; i < 50; i++) {
 5    var re = /erwe/;
 6    assertEq(re.multiline, value);
 7  }
 8}
 9
10foo(false);
11RegExp.multiline = true;
12foo(true);