summaryrefslogtreecommitdiffstats
path: root/js/src/tests/ecma_6/Generators/yield-non-regexp.js
blob: d9fbcd3598a76d2d2f8653d5f5c8a3ea87c62e6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
var BUGNUMBER = 1099956;
var summary =
  "The token next to yield should be tokenized as non-operand if yield is " +
  "a valid name";

printBugNumber(BUGNUMBER);
printStatus(summary);

var yield = 12, a = 3, b = 6, g = 2;
var yieldParsedAsIdentifier = false;

yield /a; yieldParsedAsIdentifier = true; b/g;

assertEq(yieldParsedAsIdentifier, true);

reportCompare(true, true);