There is an unsaved comment in progress. You will lose your changes if you continue. Are you sure you want to reopen the work item?
Test 7.8.4-1-s does not correctly check whether octal escape sequences are allowed
The spec does not allow octal escape sequences within strict mode code. Test 7.8.4-1-s is designed to check this - however, I believe it fails to do so.
The code in question is this: eval(' "asterisk: \052"; "use strict";');
The eval function takes a single string and by the time it reaches that point, the escape sequences have been eliminated. Thus the octal escape sequence appears
outside strict mode code (i.e. in the context of the testcase function) and thus it should be allowed.
Also debatable is whether octal escape sequences should be disallowed before the "use strict" directive is encountered. This seems like it would require the lexer to do a second pass over the code solely to resolve escape sequences.