dart-sdk/samples/sample_extension
Zichang Guo 7b893ce825 Check return value from Dart_PostCObject() in sample extension
Improve the sample code to check Dart_PostCobject(). It prevents
possible VM hangs when users sent invalid messages and add error
messages.

Bug: https://github.com/dart-lang/sdk/issues/35647
Change-Id: Ib0e752c063b0f6c14385de06000f6195c3caf530
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/98743
Commit-Queue: Zichang Guo <zichangguo@google.com>
Reviewed-by: Siva Annamalai <asiva@google.com>
2019-04-12 19:34:50 +00:00
..
test Revert "[gardening] mark sample_extension_test as error" 2018-12-10 19:37:33 +00:00
.gitignore
sample_asynchronous_extension.dart [vm/extensions] Fix native extensions in hot-reload and running from snapshot. 2019-02-14 17:47:28 +00:00
sample_extension.cc Check return value from Dart_PostCObject() in sample extension 2019-04-12 19:34:50 +00:00
sample_extension_dllmain_win.cc
sample_synchronous_extension.dart Revert "[gardening] mark sample_extension_test as error" 2018-12-10 19:37:33 +00:00
test_sample_asynchronous_extension.dart Revert "[gardening] mark sample_extension_test as error" 2018-12-10 19:37:33 +00:00
test_sample_synchronous_extension.dart Revert "[gardening] mark sample_extension_test as error" 2018-12-10 19:37:33 +00:00