Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(569)

Unified Diff: lib/runtime/dart_sdk.js

Side-by-side diff isn't available for this file because of its large size.
Issue 1967383002: Upgrade StackTrace to the latest SDK version. (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
Download patch
« no previous file with comments | « no previous file | test/browser/language_tests.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/runtime/dart_sdk.js
diff --git a/lib/runtime/dart_sdk.js b/lib/runtime/dart_sdk.js
index 75b7f50be0d1ff99be600807d258313f3afdaacb..bf071c771466ddc89e2bb090fd3ee5ca575ed775 100644
--- a/lib/runtime/dart_sdk.js
+++ b/lib/runtime/dart_sdk.js
@@ -29382,6 +29382,11 @@ dart_library.library('dart_sdk', null, /* Imports */[
});
core.Sink = core.Sink$();
core.StackTrace = class StackTrace extends core.Object {
+ StackTrace() {
+ }
+ static fromString(stackTraceString) {
+ return new core._StringStackTrace(stackTraceString);
+ }
static get current() {
if (Error.captureStackTrace != null) {
let error = new Error();
@@ -29397,6 +29402,25 @@ dart_library.library('dart_sdk', null, /* Imports */[
}
};
+ dart.setSignature(core.StackTrace, {
+ constructors: () => ({
+ StackTrace: [core.StackTrace, []],
+ fromString: [core.StackTrace, [core.String]]
+ })
+ });
+ const _stackTrace = Symbol('_stackTrace');
+ core._StringStackTrace = class _StringStackTrace extends core.Object {
+ _StringStackTrace(stackTrace) {
+ this[_stackTrace] = stackTrace;
+ }
+ toString() {
+ return this[_stackTrace];
+ }
+ };
+ core._StringStackTrace[dart.implements] = () => [core.StackTrace];
+ dart.setSignature(core._StringStackTrace, {
+ constructors: () => ({_StringStackTrace: [core._StringStackTrace, [core.String]]})
+ });
const _stop = Symbol('_stop');
core.Stopwatch = class Stopwatch extends core.Object {
get frequency() {
« no previous file with comments | « no previous file | test/browser/language_tests.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698