| Index: lib/dom/scripts/systemnative.py
|
| diff --git a/lib/dom/scripts/systemnative.py b/lib/dom/scripts/systemnative.py
|
| index be080e669d0e1c55a49e9f1848c244b2f2b59786..57f9527d3447ee942253701880c2211293d3b8b6 100644
|
| --- a/lib/dom/scripts/systemnative.py
|
| +++ b/lib/dom/scripts/systemnative.py
|
| @@ -309,7 +309,7 @@ class NativeImplementationGenerator(systembase.BaseGenerator):
|
| raises_exceptions = True
|
| self._cpp_impl_includes.add('"ContextFeatures.h"')
|
| runtime_check = emitter.Format(
|
| - ' if (ContextFeatures::$(FEATURE)Enabled(DartUtilities::domWindowForCurrentIsolate()->document())) {\n'
|
| + ' if (!ContextFeatures::$(FEATURE)Enabled(DartUtilities::domWindowForCurrentIsolate()->document())) {\n'
|
| ' exception = Dart_NewString("Feature $FEATURE is not enabled");\n'
|
| ' goto fail;\n'
|
| ' }',
|
|
|