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

Unified Diff: test/codegen/expect/isolate/isolate.js

Issue 963343002: implement private members, fixes #74 (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 10 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:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/codegen/expect/core/core.js ('k') | test/codegen/expect/math/math.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/expect/isolate/isolate.js
diff --git a/test/codegen/expect/isolate/isolate.js b/test/codegen/expect/isolate/isolate.js
index 814ba242e6444b55c532e17a0da4aae5c1b9049c..f6ea0498f73dc1d4a7185a127c660a2e72f512ef 100644
--- a/test/codegen/expect/isolate/isolate.js
+++ b/test/codegen/expect/isolate/isolate.js
@@ -9,6 +9,7 @@ var isolate;
return `IsolateSpawnException: ${this.message}`;
}
}
+ let _pause = Symbol('_pause');
class Isolate extends dart.Object {
Isolate(controlPort, opt$) {
let pauseCapability = opt$.pauseCapability === void 0 ? null : opt$.pauseCapability;
@@ -57,10 +58,10 @@ var isolate;
resumeCapability = null;
if (resumeCapability === null)
resumeCapability = new Capability();
- this._pause(resumeCapability);
+ this[_pause](resumeCapability);
return resumeCapability;
}
- _pause(resumeCapability) {
+ [_pause](resumeCapability) {
let message = new core.List(3);
dart.dsetindex(message, 0, "pause");
dart.dsetindex(message, 1, this.pauseCapability);
@@ -175,21 +176,23 @@ var isolate;
return 'IsolateUnhandledException: exception while handling message: ' + `${this.message} \n ` + `${dart.dinvoke(dart.dinvoke(this.source, 'toString'), 'replaceAll', "\n", "\n ")}\n` + 'original stack trace:\n ' + `${this.stackTrace.toString().replaceAll("\n", "\n ")}`;
}
}
+ let _description = Symbol('_description');
class RemoteError extends dart.Object {
RemoteError(description, stackDescription) {
- this._description = description;
+ this[_description] = description;
this.stackTrace = new _RemoteStackTrace(stackDescription);
}
toString() {
- return this._description;
+ return this[_description];
}
}
+ let _trace = Symbol('_trace');
class _RemoteStackTrace extends dart.Object {
- _RemoteStackTrace(_trace) {
- this._trace = _trace;
+ _RemoteStackTrace($_trace) {
+ this[_trace] = $_trace;
}
toString() {
- return this._trace;
+ return this[_trace];
}
}
class Capability extends dart.Object {
« no previous file with comments | « test/codegen/expect/core/core.js ('k') | test/codegen/expect/math/math.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698