| Index: dart/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart
|
| diff --git a/dart/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart b/dart/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart
|
| index c195512b4bc623017f68f4b8890cb0f894c28f71..79d2ab847210f185ed700bb9bf6f8d2a33ec461c 100644
|
| --- a/dart/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart
|
| +++ b/dart/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart
|
| @@ -578,6 +578,17 @@ class CodeEmitterTask extends CompilerTask {
|
| js['isolateProperties'].def(
|
| js['oldIsolate'][namer.isolatePropertiesName]),
|
|
|
| + // isolateProperties.$currentScript =
|
| + // (typeof document == "object") && (document.currentScript ||
|
| + // document.scripts[document.scripts.length - 1]);
|
| + js['isolateProperties'][r'$currentScript'].assign(
|
| + js['document'].typeof.equals(js.string('object')).binary(
|
| + '&&',
|
| + js['document']['currentScript'].binary(
|
| + '||',
|
| + js['document']['scripts'][
|
| + js['document']['scripts']['length'] - 1]))),
|
| +
|
| // var isolatePrototype = oldIsolate.prototype;
|
| js['isolatePrototype'].def(js['oldIsolate']['prototype']),
|
|
|
|
|