Skip to content

Commit 99fb9bb

Browse files
committed
snapshot
1 parent 15fa1b9 commit 99fb9bb

File tree

1 file changed

+20
-3
lines changed

1 file changed

+20
-3
lines changed

dist/r.js

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3469,7 +3469,7 @@ parseStatement: true, parseSourceElement: true */
34693469
((ch.charCodeAt(0) >= 0x80) && Regex.NonAsciiIdentifierPart.test(ch));
34703470
}
34713471

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
34733473

34743474
function isFutureReservedWord(id) {
34753475
switch (id) {
@@ -3510,7 +3510,7 @@ parseStatement: true, parseSourceElement: true */
35103510
return id === 'eval' || id === 'arguments';
35113511
}
35123512

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
35143514

35153515
function isKeyword(id) {
35163516
var keyword = false;
@@ -12365,7 +12365,7 @@ define('transform', [ './esprima', './parse', 'logger', 'lang'], function (espri
1236512365

1236612366
//Find the define calls and their position in the files.
1236712367
tokens.forEach(function (token, i) {
12368-
var prev, prev2, next, next2, next3, next4,
12368+
var prev, prev2, next, next2, next3, next4, next5,
1236912369
needsId, depAction, nameCommaRange, foundId,
1237012370
sourceUrlData,
1237112371
namespaceExists = false;
@@ -12518,6 +12518,23 @@ define('transform', [ './esprima', './parse', 'logger', 'lang'], function (espri
1251812518
} else {
1251912519
return;
1252012520
}
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+
}
1252112538
} else {
1252212539
//Not a match, skip it.
1252312540
return;

0 commit comments

Comments
 (0)