2018-06-11 01:07:05 +02:00
|
|
|
// Copyright (c) 2012 Ecma International. All rights reserved.
|
|
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
|
|
|
|
/*---
|
|
|
|
esid: use-strict-directive
|
|
|
|
es5id: 10.1.1-2-s
|
|
|
|
description: >
|
|
|
|
Strict Mode - Use Strict Directive Prologue is ''use strict''
|
|
|
|
which lost the last character ';'
|
|
|
|
flags: [noStrict]
|
|
|
|
---*/
|
|
|
|
|
|
|
|
function fun() {
|
|
|
|
"use strict"
|
2018-06-11 01:21:12 +02:00
|
|
|
test262unresolvable = null;
|
2018-06-11 01:07:05 +02:00
|
|
|
}
|
|
|
|
|
2018-06-11 01:21:12 +02:00
|
|
|
assert.throws(ReferenceError, function() {
|
2018-06-11 01:07:05 +02:00
|
|
|
fun();
|
|
|
|
});
|