Closed sydneyjodon-wk closed 3 years ago
The items listed below may not capture all security relevant changes. Before providing a security review, be sure to review the entire PR for security impact.
lib/src/react_client/private_utils.dart
modifiedaviary.yaml
coverage of security relevant codeQuestions or Comments? Reach out on Slack: #support-infosec.
No changes to the public API found for commit 32b58a7a363d7e9b944b8f5984c0243c04a7cdeb
Showing results for 32b58a7a363d7e9b944b8f5984c0243c04a7cdeb
Powered by semver-audit-service. Please report any problems by filing an issue. Reported by the dart semver audit client 2.2.0 Browse public API.
Last edited UTC Feb 17 at 19:59:18
+1 security
Motivation
Dart 2.12 includes changes to
setProperty
that disallow passing in Dart functions, since they are not callable by JS code. https://github.com/dart-lang/sdk/commit/d683f33f5bfefe92ea1a590a800c7e41b213f69cThis breaks passing function props to Dart components, since
JsBackedMap
stores those values usingsetProperty
under the hood.This is the reason that react-dart dev builds are currently failing.
We can work around this issue by wrapping Dart functions in an object, which can be passed through without issue.
Changes
JsBackedMap
toContextHelpers
JsBackedMap
and context testsQA Steps