diff options
Diffstat (limited to 'src/arguments.h')
-rw-r--r-- | src/arguments.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/arguments.h b/src/arguments.h index d5d2c02b..1d91b20b 100644 --- a/src/arguments.h +++ b/src/arguments.h @@ -6,7 +6,7 @@ #define V8_ARGUMENTS_H_ #include "src/allocation.h" -#include "src/objects-inl.h" +#include "src/objects.h" #include "src/tracing/trace-event.h" namespace v8 { @@ -41,7 +41,8 @@ class Arguments BASE_EMBEDDED { index * kPointerSize)); } - template <class S> Handle<S> at(int index) { + template <class S = Object> + Handle<S> at(int index) { Object** value = &((*this)[index]); // This cast checks that the object we're accessing does indeed have the // expected type. |