Remove/inline CanonicalizeArrayLengthValue.

This commit is contained in:
wolfbeast 2019-06-16 23:17:34 +00:00 committed by Roy Tam
commit bd3135ad35
2 changed files with 14 additions and 29 deletions

View file

@ -117,13 +117,6 @@ NewValuePair(JSContext* cx, const Value& val1, const Value& val2, MutableHandleV
extern bool
WouldDefinePastNonwritableLength(HandleNativeObject obj, uint32_t index);
/*
* Canonicalize |vp| to a uint32_t value potentially suitable for use as an
* array length.
*/
extern bool
CanonicalizeArrayLengthValue(JSContext* cx, HandleValue v, uint32_t* canonicalized);
extern bool
GetLengthProperty(JSContext* cx, HandleObject obj, uint32_t* lengthp);