Andrey Shitov
ae3eea8ae8
Add functions for iterating utf-8 strings.
...
JerryScript-DCO-1.0-Signed-off-by: Andrey Shitov a.shitov@samsung.com
2015-07-03 13:24:27 +03:00
Szilard Ledan
017aa6b684
Change Date helpers to handle NaN
...
JerryScript-DCO-1.0-Signed-off-by: Szilard Ledan szledan.u-szeged@partner.samsung.com
2015-07-02 09:15:03 +02:00
Dániel Bátyai
713b433c42
Implement Number.prototype.toPrecision()
...
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai dbatyai.u-szeged@partner.samsung.com
2015-07-01 11:15:18 +02:00
Dániel Bátyai
53cbb55f25
Implement Number.prototype.toExponential()
...
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai dbatyai.u-szeged@partner.samsung.com
2015-07-01 10:51:55 +02:00
Andrey Shitov
fd9ff8e3bd
Add core unicode functionality.
...
Add utf-8 processing routines.
Change ecma_char_t from char/uint16_t to uint16_t.
Apply all utf-8 processing routines.
Change char to jerry_api_char in API functions' declarations.
JerryScript-DCO-1.0-Signed-off-by: Andrey Shitov a.shitov@samsung.com
2015-06-29 23:27:58 +03:00
Andrey Shitov
c4b0cd2196
Change ecma_length_t and jerry_api_length_t from uint16_t to uint32_t.
...
JerryScript-DCO-1.0-Signed-off-by: Andrey Shitov a.shitov@samsung.com
2015-06-29 23:27:58 +03:00
Andrey Shitov
a0c5974ab8
Move char type definitions and magic string processing functions to literal component.
...
JerryScript-DCO-1.0-Signed-off-by: Andrey Shitov a.shitov@samsung.com
2015-06-29 23:27:58 +03:00
Szilard Ledan
07148d319b
Implement Date object helper functions
...
JerryScript-DCO-1.0-Signed-off-by: Szilard Ledan szledan.u-szeged@partner.samsung.com
2015-06-29 18:09:39 +02:00
Ruben Ayrapetyan
06dffdec8f
Remove exit completion value type.
...
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
2015-06-29 10:24:18 +03:00
László Langó
f992f5d92e
Add RegExp object constructor, regular expression matching procedures, RegExp and RegExp.prototype built-in objects.
...
JerryScript-DCO-1.0-Signed-off-by: Szilard Ledan szledan.u-szeged@partner.samsung.com
JerryScript-DCO-1.0-Signed-off-by: László Langó llango.u-szeged@partner.samsung.com
2015-06-26 13:31:06 +02:00
Zsolt Borbély
1c19e5c8ab
Fix the Object.getPrototypeOf function.
...
Related issue: #208
JerryScript-DCO-1.0-Signed-off-by: Zsolt Borbély zsborbely.u-szeged@partner.samsung.com
2015-06-25 16:32:53 +02:00
Kristof Kosztyo
61ab205130
Implement Object.create function
...
JerryScript-DCO-1.0-Signed-off-by: Kristof Kosztyo kkosztyo.u-szeged@partner.samsung.com
2015-06-23 17:46:59 +02:00
Zsolt Borbély
3f28cb3bf8
Fix the indexing of Array builtin functions.
...
The index-dependant builtins didn't handle correctly the positive Infinity value.
JerryScript-DCO-1.0-Signed-off-by: Zsolt Borbély zsborbely.u-szeged@partner.samsung.com
2015-06-23 17:29:46 +02:00
Laszlo Vidacs
caa1617ea2
Implement String.prototype.trim()
...
JerryScript-DCO-1.0-Signed-off-by: Laszlo Vidacs lvidacs.u-szeged@partner.samsung.com
2015-06-23 16:54:42 +02:00
Dániel Bátyai
7d3bb85ccb
Fix buffer size in Number.prototype.toFixed()
...
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai dbatyai.u-szeged@partner.samsung.com
2015-06-23 14:14:39 +02:00
Evgeny Gavrin
216dc251ec
Remove support of plug-in mechanism.
...
This API is obsolete and can be fully replaced with existing `api.h`.
JerryScript-DCO-1.0-Signed-off-by: Evgeny Gavrin e.gavrin@samsung.com
2015-06-23 13:56:46 +03:00
Ruben Ayrapetyan
611811678e
Remove invalid assertion in ecma_builtin_global_object_eval.
...
The removed assertion checked that `this` argument can't be equal to `undefined` in direct call to eval.
Actually, `this` can be not equal to `undefined` in case direct call to eval is performed from `with` block.
Related issue: #212
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
2015-06-23 13:09:55 +03:00
Ruben Ayrapetyan
81d13b0676
Fix incorrect interchange of interfaces taking to ecma values and ecma completion values.
...
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
2015-06-23 11:38:13 +03:00
Kristof Kosztyo
e3861d7cd1
Implement Object.freeze and Object.isFrozen function
...
JerryScript-DCO-1.0-Signed-off-by: Kristof Kosztyo kkosztyo.u-szeged@partner.samsung.com
2015-06-22 10:03:18 +02:00
Kristof Kosztyo
2ee469ee65
Implement Object.seal and Object.isSealed function
...
JerryScript-DCO-1.0-Signed-off-by: Kristof Kosztyo kkosztyo.u-szeged@partner.samsung.com
2015-06-22 09:25:10 +02:00
Tamas Czene
4836d3b615
Implemented Number.prototype.toFixed()
...
JerryScript-DCO-1.0-Signed-off-by: László Langó llango.u-szeged@partner.samsung.com
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai dbatyai.u-szeged@partner.samsung.com
JerryScript-DCO-1.0-Signed-off-by: Tamas Czene tczene.u-szeged@partner.samsung.com
2015-06-19 17:34:48 +02:00
Ruben Ayrapetyan
4e563932f1
Remove parser_init / parser_free interfaces (corresponding actions are now performed in parser_parse_program); introduce boolean return value in parser invocation interfaces that would indicate whether SyntaxError was raised during parse.
...
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
2015-06-19 16:25:34 +03:00
Zoltan Herczeg
6027906f96
Add support for URI encoding / decoding.
...
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg@inf.u-szeged.hu
2015-06-18 19:05:45 +02:00
Dániel Bátyai
7508b803cf
Implement parseFloat()
...
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai dbatyai.u-szeged@partner.samsung.com
2015-06-17 16:42:07 +02:00
Dániel Bátyai
35840a4b6d
Implement parseInt()
...
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai dbatyai.u-szeged@partner.samsung.com
2015-06-17 16:41:57 +02:00
Ruben Ayrapetyan
6d6c913bdc
Move random number generator from Math.random to jerry-libc, replace the logic with call to rand in Math.random.
...
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
2015-06-17 17:02:50 +03:00
László Langó
d803c3bc82
Init commit for Date object.
...
JerryScript-DCO-1.0-Signed-off-by: Szilard Ledan szledan.u-szeged@partner.samsung.com
JerryScript-DCO-1.0-Signed-off-by: László Langó llango.u-szeged@partner.samsung.com
2015-06-16 18:05:31 +02:00
Ruben Ayrapetyan
5d5e75fad6
Implementing 'eval' routine of built-in Global object.
...
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
2015-06-13 18:17:23 +03:00
Ruben Ayrapetyan
6fadcd3f84
Implementing [[Construct]] of built-in Function object.
...
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
2015-06-13 18:17:23 +03:00
Kristof Kosztyo
013bce85fc
Fix ecma_get_property_descriptor_from_property function
...
JerryScript-DCO-1.0-Signed-off-by: Kristof Kosztyo kkosztyo.u-szeged@partner.samsung.com
2015-06-12 16:51:57 +02:00
Peter Gal
62cb842434
Implement Function.prototype.toString.
...
JerryScript-DCO-1.0-Signed-off-by: Peter Gal pgal.u-szeged@partner.samsung.com
2015-06-12 14:54:03 +02:00
Zsolt Borbély
7952b1cae7
Implement Function.prototype.apply()
...
JerryScript-DCO-1.0-Signed-off-by: Zsolt Borbély zsborbely.u-szeged@partner.samsung.com
2015-06-12 13:02:21 +02:00
Laszlo Vidacs
72eb14f741
String.prototype.concat()
...
JerryScript-DCO-1.0-Signed-off-by: Laszlo Vidacs lvidacs.u-szeged@partner.samsung.com
2015-06-12 12:46:36 +02:00
Kristof Kosztyo
6ebb32452e
Refactor the Object.defineProperties function
...
Fix assert and corner cases in Object.defineProperties function.
JerryScript-DCO-1.0-Signed-off-by: Kristof Kosztyo kkosztyo.u-szeged@partner.samsung.com
2015-06-10 15:36:11 +02:00
Zsolt Borbély
cefeea06f6
Implement Object.getPrototypeOf()
...
JerryScript-DCO-1.0-Signed-off-by: Zsolt Borbély zsborbely.u-szeged@partner.samsung.com
2015-06-08 16:43:30 +02:00
Zsolt Borbély
0b1b102cfa
Implement String.prototype.slice()
...
JerryScript-DCO-1.0-Signed-off-by: Zsolt Borbély zsborbely.u-szeged@partner.samsung.com
2015-06-05 10:48:47 +02:00
Laszlo Vidacs
4547b0fdac
Array.prototype.map()
...
JerryScript-DCO-1.0-Signed-off-by: Laszlo Vidacs lvidacs.u-szeged@partner.samsung.com
2015-06-04 14:31:26 +02:00
Kristof Kosztyo
a838461649
Implement Object.isExtensible and Object.preventExtensions function
...
JerryScript-DCO-1.0-Signed-off-by: Kristof Kosztyo kkosztyo.u-szeged@partner.samsung.com
2015-06-03 11:22:34 +02:00
Laszlo Vidacs
2a8c928395
Implement Array.prototype.reduceRight()
...
JerryScript-DCO-1.0-Signed-off-by: Laszlo Vidacs lvidacs.u-szeged@partner.samsung.com
2015-06-03 11:03:45 +02:00
Peter Gal
5c012a1183
Implement Object.getOwnPropertyNames and Object.keys.
...
JerryScript-DCO-1.0-Signed-off-by: Peter Gal pgal.u-szeged@partner.samsung.com
2015-06-01 16:01:02 +02:00
Laszlo Vidacs
89e5444438
Array.prototype.reduce() fixes.
...
JerryScript-DCO-1.0-Signed-off-by: Laszlo Vidacs lvidacs.u-szeged@partner.samsung.com
2015-06-01 14:18:03 +02:00
Laszlo Vidacs
95adf0e21f
Array.prototype.reduce() fixes.
...
JerryScript-DCO-1.0-Signed-off-by: Laszlo Vidacs lvidacs.u-szeged@partner.samsung.com
2015-06-01 14:18:03 +02:00
Laszlo Vidacs
f22f3c50e7
Array.prototype.reduce() tests, minor fixes.
...
JerryScript-DCO-1.0-Signed-off-by: Laszlo Vidacs lvidacs.u-szeged@partner.samsung.com
2015-06-01 14:18:03 +02:00
Laszlo Vidacs
71059fe346
Array.prototype.reduce() minor fixes.
...
JerryScript-DCO-1.0-Signed-off-by: Laszlo Vidacs lvidacs.u-szeged@partner.samsung.com
2015-06-01 14:18:03 +02:00
Laszlo Vidacs
d6e4e19852
Implement Array.prototype.reduce()
...
JerryScript-DCO-1.0-Signed-off-by: Laszlo Vidacs lvidacs.u-szeged@partner.samsung.com
2015-06-01 14:17:57 +02:00
Szilard Ledan
6b8e34a9cd
Implemented Array.prototype.sort()
...
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai dbatyai.u-szeged@partner.samsung.com
JerryScript-DCO-1.0-Signed-off-by: Szilard Ledan szledan.u-szeged@partner.samsung.com
2015-05-29 15:22:58 +02:00
Ruben Ayrapetyan
da7e9d9871
Fixing retrieval of [[Class]] properties for built-in function objects, optimizing memory related to [[Class]] property.
...
- introduced ecma_object_get_class_name interface;
- removed creation of [[Class]] internal property for types of objects that unambiguously determine the [[Class]] value.
Related issue: #112
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
2015-05-29 12:52:24 +03:00
Peter Gal
c3f9169eb7
Fix property lookup in Object.getOwnPropertyDescriptor.
...
The ecma_op_general_object_get_own_property call does not find all
properties, we need to use the ecma_op_object_get_own_property method
for correct property lookup.
JerryScript-DCO-1.0-Signed-off-by: Peter Gal pgal.u-szeged@partner.samsung.com
2015-05-28 15:44:03 +02:00
Dániel Bátyai
3329583435
Implemented Array.prototype.filter()
...
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai dbatyai.u-szeged@partner.samsung.com
2015-05-28 15:36:28 +02:00
Peter Gal
aaeec7fb09
Implement Array.prototoype.toLocaleString()
...
JerryScript-DCO-1.0-Signed-off-by: Peter Gal pgal.u-szeged@partner.samsung.com
2015-05-27 15:18:43 +02:00