| OLD | NEW |
| 1 dart_library.library('dart/_isolate_helper', null, /* Imports */[ | 1 dart_library.library('dart/_isolate_helper', null, /* Imports */[ |
| 2 "dart_runtime/dart", | 2 "dart_runtime/dart", |
| 3 'dart/core', | 3 'dart/core', |
| 4 'dart/_interceptors', | 4 'dart/_interceptors', |
| 5 'dart/_js_helper', | 5 'dart/_js_helper', |
| 6 'dart/isolate', | 6 'dart/isolate', |
| 7 'dart/_foreign_helper', | 7 'dart/_foreign_helper', |
| 8 'dart/collection', | 8 'dart/collection', |
| 9 'dart/async' | 9 'dart/async' |
| 10 ], /* Lazy imports */[ | 10 ], /* Lazy imports */[ |
| (...skipping 932 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 943 class IsolateNatives extends core.Object { | 943 class IsolateNatives extends core.Object { |
| 944 static computeThisScript() { | 944 static computeThisScript() { |
| 945 let currentScript = document.currentScript; | 945 let currentScript = document.currentScript; |
| 946 if (currentScript != null) { | 946 if (currentScript != null) { |
| 947 return String(currentScript.src); | 947 return String(currentScript.src); |
| 948 } | 948 } |
| 949 if (dart.notNull(_js_helper.Primitives.isD8)) | 949 if (dart.notNull(_js_helper.Primitives.isD8)) |
| 950 return IsolateNatives.computeThisScriptD8(); | 950 return IsolateNatives.computeThisScriptD8(); |
| 951 if (dart.notNull(_js_helper.Primitives.isJsshell)) | 951 if (dart.notNull(_js_helper.Primitives.isJsshell)) |
| 952 return IsolateNatives.computeThisScriptJsshell(); | 952 return IsolateNatives.computeThisScriptJsshell(); |
| 953 if (dart.notNull(exports._globalState.isWorker)) | 953 if (exports._globalState != null && dart.notNull(exports._globalState.isWo
rker)) { |
| 954 return IsolateNatives.computeThisScriptFromTrace(); | 954 return IsolateNatives.computeThisScriptFromTrace(); |
| 955 } |
| 955 return null; | 956 return null; |
| 956 } | 957 } |
| 957 static computeThisScriptJsshell() { | 958 static computeThisScriptJsshell() { |
| 958 return dart.as(thisFilename(), core.String); | 959 return dart.as(thisFilename(), core.String); |
| 959 } | 960 } |
| 960 static computeThisScriptD8() { | 961 static computeThisScriptD8() { |
| 961 return IsolateNatives.computeThisScriptFromTrace(); | 962 return IsolateNatives.computeThisScriptFromTrace(); |
| 962 } | 963 } |
| 963 static computeThisScriptFromTrace() { | 964 static computeThisScriptFromTrace() { |
| 964 let stack = new Error().stack; | 965 let stack = new Error().stack; |
| (...skipping 589 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1554 exports.leaveJsAsync = leaveJsAsync; | 1555 exports.leaveJsAsync = leaveJsAsync; |
| 1555 exports.isWorker = isWorker; | 1556 exports.isWorker = isWorker; |
| 1556 exports.startRootIsolate = startRootIsolate; | 1557 exports.startRootIsolate = startRootIsolate; |
| 1557 exports.IsolateNatives = IsolateNatives; | 1558 exports.IsolateNatives = IsolateNatives; |
| 1558 exports.RawReceivePortImpl = RawReceivePortImpl; | 1559 exports.RawReceivePortImpl = RawReceivePortImpl; |
| 1559 exports.ReceivePortImpl = ReceivePortImpl; | 1560 exports.ReceivePortImpl = ReceivePortImpl; |
| 1560 exports.TimerImpl = TimerImpl; | 1561 exports.TimerImpl = TimerImpl; |
| 1561 exports.hasTimer = hasTimer; | 1562 exports.hasTimer = hasTimer; |
| 1562 exports.CapabilityImpl = CapabilityImpl; | 1563 exports.CapabilityImpl = CapabilityImpl; |
| 1563 }); | 1564 }); |
| OLD | NEW |