* ErrorThrowCallback is invoked when an Error is thrown
* ErrorThrowCallback overwrites the result of ErrorCreationCallback
Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
* if ErrorCreationCallback is registered and this callback already inserts `stack` property for evert created ErrorObject,
we just ignore adding `stack` data into ErrorObject
Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
* String::emptyString is the default string value of empty AtomicString
* so, mark emptyString as source of AtomicString too
Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
* PromiseRejectCallback is invoked when a Promise is rejected but it does not have any reject handler
Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
If Escargot is compiled with debugger but run without the debug server
then the Escargot will crash. This patch will fix this problem.
Signed-off-by: Gergo Csizi gergocs@inf.u-szeged.hu
m_complexJumpContinueIgnoreCount, m_complexJumpBreakIgnoreCount are
should follow size of m_recursiveStatementStack
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
- The debugger callbacks are implemented as class
- Using std::vector for storing data
Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
* rename data related to PropertyHandler
* refactoring ObjectWithPropertyHandler to handle NamedProperty and IndexedProperty both
* add cctest
Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
* update to common PropertyHandler data and strucuture to represent IndexedProperty and NamedProperty both
* check property name in each ObjectWithPropertyHandler method
Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
* usually property name is delivered as Value format
* replace `TemplatePropertyName` with `ObjectStructurePropertyName` to handle Value format nicely
Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
* add simple syntax checker method in parser to check parameters and body string
* fix it to check parameters and body string seperately
* add several TCs for this patch too
Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
we need to mark enum as unsigned.
because processing enum in msvc is little different
ex) enum Type { A, B }
struct Foo { Type type: 1; }
Foo f; f.type = 1;
if (f.type == Type::B) { puts("failed in msvc."); }
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
* according to api, ObjectTemplate should inherit its parent's NativeDataAccessorProperties of InstanceTemplate too
Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
* handle exceptional case of function name which is that function name needs to be allocated on the heap with other lexical variables
Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
* divide BackingStore structure into NonShared and Shared
* update BackingStoreRef API to clarify its usage
Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>