| Index: runtime/vm/object.h
|
| diff --git a/runtime/vm/object.h b/runtime/vm/object.h
|
| index 2726cf558e10e2a03cae875d0a85247fd9680f21..61a8051b8ebcba5e3b76764371117ce469bb924f 100644
|
| --- a/runtime/vm/object.h
|
| +++ b/runtime/vm/object.h
|
| @@ -3548,7 +3548,10 @@ class Script : public Object {
|
| }
|
| void set_compile_time_constants(const Array& value) const;
|
|
|
| - RawTokenStream* tokens() const { return raw_ptr()->tokens_; }
|
| + RawTokenStream* tokens() const {
|
| + ASSERT(kind() != RawScript::kKernelTag);
|
| + return raw_ptr()->tokens_;
|
| + }
|
|
|
| void set_line_starts(const Array& value) const;
|
|
|
|
|