| Index: lib/dom/scripts/systemnative.py
|
| diff --git a/lib/dom/scripts/systemnative.py b/lib/dom/scripts/systemnative.py
|
| index f8875a2c9281512b576c0e45949b7925fb6e2b45..662b8f021e4abc7aa826e562e0a000b3d9a68948 100644
|
| --- a/lib/dom/scripts/systemnative.py
|
| +++ b/lib/dom/scripts/systemnative.py
|
| @@ -299,6 +299,7 @@ class NativeImplementationGenerator(systembase.BaseGenerator):
|
| if 'synthesizedV8EnabledPerContext' in ext_attrs:
|
| raises_exceptions = True
|
| self._cpp_impl_includes.add('"ContextFeatures.h"')
|
| + self._cpp_impl_includes.add('"DOMWindow.h"')
|
| runtime_check = emitter.Format(
|
| ' if (!ContextFeatures::$(FEATURE)Enabled(DartUtilities::domWindowForCurrentIsolate()->document())) {\n'
|
| ' exception = Dart_NewString("Feature $FEATURE is not enabled");\n'
|
|
|