Commit 9ee0bd8d authored by Kevin Modzelewski's avatar Kevin Modzelewski

0-arg vars()

parent fa3ed96f
...@@ -78,7 +78,8 @@ extern "C" Box* dir(Box* obj) { ...@@ -78,7 +78,8 @@ extern "C" Box* dir(Box* obj) {
} }
extern "C" Box* vars(Box* obj) { extern "C" Box* vars(Box* obj) {
RELEASE_ASSERT(obj, "Don't support 0-arg vars() calls yet"); if (!obj)
return fastLocalsToBoxedLocals();
return makeAttrWrapper(obj); return makeAttrWrapper(obj);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment