@@ -3469,7 +3469,7 @@ parseStatement: true, parseSourceElement: true */
3469
3469
((ch.charCodeAt(0) >= 0x80) && Regex.NonAsciiIdentifierPart.test(ch));
3470
3470
}
3471
3471
3472
- // 7.6.1 Thu, 27 Sep 2012 23:38 :25 GMT.2 Future Reserved Words
3472
+ // 7.6.1 Sat, 29 Sep 2012 00:56 :25 GMT.2 Future Reserved Words
3473
3473
3474
3474
function isFutureReservedWord(id) {
3475
3475
switch (id) {
@@ -3510,7 +3510,7 @@ parseStatement: true, parseSourceElement: true */
3510
3510
return id === 'eval' || id === 'arguments';
3511
3511
}
3512
3512
3513
- // 7.6.1 Thu, 27 Sep 2012 23:38 :25 GMT.1 Keywords
3513
+ // 7.6.1 Sat, 29 Sep 2012 00:56 :25 GMT.1 Keywords
3514
3514
3515
3515
function isKeyword(id) {
3516
3516
var keyword = false;
@@ -12365,7 +12365,7 @@ define('transform', [ './esprima', './parse', 'logger', 'lang'], function (espri
12365
12365
12366
12366
//Find the define calls and their position in the files.
12367
12367
tokens.forEach(function (token, i) {
12368
- var prev, prev2, next, next2, next3, next4,
12368
+ var prev, prev2, next, next2, next3, next4, next5,
12369
12369
needsId, depAction, nameCommaRange, foundId,
12370
12370
sourceUrlData,
12371
12371
namespaceExists = false;
@@ -12518,6 +12518,23 @@ define('transform', [ './esprima', './parse', 'logger', 'lang'], function (espri
12518
12518
} else {
12519
12519
return;
12520
12520
}
12521
+ } else if (next2.type === 'Keyword' && next2.value === 'this') {
12522
+ //May be the define(this.key); type
12523
+ next3 = tokens[i + 3];
12524
+ next4 = tokens[i + 4];
12525
+ next5 = tokens[i + 5];
12526
+ if (!next3 || !next4 || !next5) {
12527
+ return;
12528
+ }
12529
+
12530
+ if (next3.type === 'Punctuator' && next3.value === '.' &&
12531
+ next4.type === 'Identifier' &&
12532
+ next5.type === 'Punctuator' && next5.value === ')') {
12533
+ needsId = true;
12534
+ depAction = 'empty';
12535
+ } else {
12536
+ return;
12537
+ }
12521
12538
} else {
12522
12539
//Not a match, skip it.
12523
12540
return;
0 commit comments