[Tool][Generator] fix async
authorPawel Kaczmarek <p.kaczmarek3@samsung.com>
Mon, 2 Feb 2015 11:36:57 +0000 (12:36 +0100)
committerPawel Kaczmarek <p.kaczmarek3@samsung.com>
Mon, 2 Feb 2015 11:36:57 +0000 (12:36 +0100)
[Verification]
Should generate callNativeWithCallback in JS for async methods

Change-Id: Id1a3b20a09e427546726de8f89c06ad1e10828c5
Signed-off-by: Pawel Kaczmarek <p.kaczmarek3@samsung.com>
tools/skeleton_generator/WAPIOven.py

index 31c4f52b14d82751a874426625fcbba9cc361f9d..b27fa9e4a233794cf320c765658baeb404d03f4b 100644 (file)
@@ -194,6 +194,7 @@ class Compiler(IndentPrintable):
                         if arg.validation:
                             if arg.validation[0] in ['FUNCTION', 'LISTENER']:
                                 m.async = True
+                                operation.async = True
                             elif arg.validation[0] in jsPrimitiveMap.values():
                                 operation.primitiveArgs.append(arg)