if we use a regexp that contains Unicode and Global flag
and we match a string that contains more then one of the same letter
then the last index is going to be set wrongfully
for example :
var a = /t/ug;
print("ttt".match(a))
output should be: t,t,t
Signed-off-by: bence gabor kis <kisbg@inf.u-szeged.hu>
* Set value as undefined when there is SyntaxError
* Fix memory leak related with throwing esprima::Error
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
* update definition of ArrayBufferView, TypedArrayObject
* access each TypedArray through TypedArrayObject transition instead of ArrayBufferView
Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
The line info for each breakpoint can be calculated from the LOC index.
This patch resolves the problem, mentioned in #649.
Signed-off-by: Robert Fancsik <frobert@inf.u-szeged.hu>
* Implement export * as {name} from {src} feature
* Update Script::resolveExport for following new spec
* Update test262 driver for running test cases correctly
* Implement changes of ModuleNamespaceObject::[[*]]
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
* Export default function declaration should treat as function declaration
* But there is no name on export function decl, we should the statement as function expression
* Check duplicate export name correctly
* Don't include FIXTURE files as testset in test262
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
* add element get/set internal method to TypedArray
* internal methods of TypedArray directly access array buffer
* disable inline cache only when property name is related to "Infinity"
Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
When there is no "throw" method when got exception while executing yield* expression,
We should throw "yield* violation. There is no throw method on iterator Object" TypeError.
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
* run jetstream only for release-32bit
* run test262 by release mode in 64bit
* for test262, add --fast-mode to run the TCs fastly in debug mode
* fix minor bug about type transition
Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
* implement and apply CanonicalNumericIndexString for index calculating
* use size_t type for index variables instead of unsigned
* skip a non-standard TC in SpiderMonkey test
Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
but I don't want to add extra bytecodes for this.
and It is only needed when there is direct eval operation.
so I wrap each parameter block with small arrow function.
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
* When there is arrow function on class ctor, we should use heap-allocated lex env for class ctor.
because we need to compute this variable on run-time
* when there is super expression with computed case, we should load this binding first for testing binding
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
* update ArrayBuffer using TypedArrayHelper
* fix a bug related to length of ArrayBuffer on 32bit
Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
* ArrayBufferObject methods are updated
* some part of builtin methods in TypedArray reworked based on ES10
Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
* Object.prototype.toLocaleString should use this value correctly
* ICU 67 doesn't format near minus zero value correctly, so we should disable test
* we should provide stack info correctly when there is try-statemenet
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
* compress the size of ObjectPropertyName to 4byte for 32bit platform
* use tag bit to represent the type of ObjectPropertyName
Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
* If we use Object::nextIndexBackward, Object::nextIndexForward with non ordinal object,
we should not test existence of value for index(we would not call user-defined function)
* Generate more user-friendly callstack
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
* toString builtin method of TypedArray is initialized to the value of Array.prototype.toString
* allocateArrayBuffer and cloneArrayBuffer are revised according to ES10 standard
Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
* remove each unnecessary length method
* getArrayLength and lengthES6 have been renamed
* return type of toLength is changed to uint64_t
* use createListFromArrayLike for more cases
Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>