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

Unified Diff: sdk/lib/_internal/js_runtime/lib/js_helper.dart

Issue 2855173002: Revert "Void is not required to be `null` anymore." (Closed)
Patch Set: Created 3 years, 8 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 | « runtime/vm/object.cc ('k') | tests/co19/co19-co19.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/js_runtime/lib/js_helper.dart
diff --git a/sdk/lib/_internal/js_runtime/lib/js_helper.dart b/sdk/lib/_internal/js_runtime/lib/js_helper.dart
index 42529f413b4f9277395cf1d794fa8d0f9d48d700..b84ff432b148e51d09357732980b877ecbf615ea 100644
--- a/sdk/lib/_internal/js_runtime/lib/js_helper.dart
+++ b/sdk/lib/_internal/js_runtime/lib/js_helper.dart
@@ -3415,6 +3415,11 @@ listSuperNativeTypeCast(value, property) {
propertyTypeCastError(value, property);
}
+voidTypeCheck(value) {
+ if (value == null) return value;
+ throw new TypeErrorImplementation(value, 'void');
+}
+
extractFunctionTypeObjectFrom(o) {
var interceptor = getInterceptor(o);
var signatureName = JS_GET_NAME(JsGetName.SIGNATURE_NAME);
« no previous file with comments | « runtime/vm/object.cc ('k') | tests/co19/co19-co19.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698