Skip to content

Commit b8fcd8c

Browse files
author
John Messerly
committed
rename as helper to make tools happy
WebStorm ES6 support treats `as` as a keyword. Not sure why, as I don't see it in any ES6 specs, even under "future reserved words". [email protected] Review URL: https://codereview.chromium.org/971823002
1 parent 5d52de7 commit b8fcd8c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/dev_compiler/lib/runtime/dart_runtime.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,13 +93,13 @@ var dart;
9393
}
9494
dart.dbinary = dbinary;
9595

96-
function as(obj, type) {
96+
function as_(obj, type) {
9797
// TODO(vsm): Implement.
9898
// if (obj == null || is(obj, type)) return obj;
9999
// throw new core.CastError();
100100
return obj;
101101
}
102-
dart.as = as;
102+
dart.as = as_;
103103

104104
function is(obj, type) {
105105
// TODO(vsm): Implement.

0 commit comments

Comments
 (0)