ref: 8f12e045f673e67f6f09d50d13ba5d1275491b1e
parent: 84752905b9d5a721121f049d05724fa2899525bd
author: Tor Andersson <tor.andersson@artifex.com>
date: Tue Mar 17 10:03:14 EDT 2020
Return "[object Iterator]" when running toString on an iterator value.
--- a/jsobject.c
+++ b/jsobject.c
@@ -42,7 +42,7 @@
case JS_CMATH: js_pushliteral(J, "[object Math]"); break;
case JS_CJSON: js_pushliteral(J, "[object JSON]"); break;
case JS_CARGUMENTS: js_pushliteral(J, "[object Arguments]"); break;
- case JS_CITERATOR: js_pushliteral(J, "[Iterator]"); break;
+ case JS_CITERATOR: js_pushliteral(J, "[object Iterator]"); break;
case JS_CUSERDATA:
js_pushliteral(J, "[object ");
js_pushliteral(J, self->u.user.tag);