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

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
Index: test/codegen/expect/isolate/isolate.js
diff --git a/test/codegen/expect/isolate/isolate.js b/test/codegen/expect/isolate/isolate.js
index facbfa45d1aa9cbeee556948475823763941d462..ccf634546eb9397cfcdc795f9880562a0a6e0b05 100644
--- a/test/codegen/expect/isolate/isolate.js
+++ b/test/codegen/expect/isolate/isolate.js
@@ -1,6 +1,9 @@
var isolate;
(function(isolate) {
'use strict';
+ let _pause = Symbol('_pause');
+ let _description = Symbol('_description');
+ let _trace = Symbol('_trace');
class IsolateSpawnException extends dart.Object {
IsolateSpawnException(message) {
this.message = message;
@@ -57,10 +60,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);
@@ -177,19 +180,19 @@ var isolate;
}
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];
}
}
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 {

Powered by Google App Engine
This is Rietveld 408576698