Skip to content

TypeScript bug in Proxy handler method #19899

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ORESoftware opened this issue Nov 10, 2017 · 3 comments
Closed

TypeScript bug in Proxy handler method #19899

ORESoftware opened this issue Nov 10, 2017 · 3 comments
Labels
Duplicate An existing issue was already created

Comments

@ORESoftware
Copy link

ORESoftware commented Nov 10, 2017

I made a video on this bug:
https://www.useloom.com/share/5f89ee1de6f84abbbf9703af3b34c00c

Code

  t.$inject = new Proxy(self.__inject, {
       set(target, property, value, receiver){
          throw new Error('cannot set any properties on t.$inject (in test cases).');
       }
  });

Expected behavior:
Expect throw to supercede API requirements

Actual behavior:
Need to return a boolean even after a throw call.

Here is a screenshot of the error message:

screenshot 2017-11-09 22 19 30

@ghost
Copy link

ghost commented Nov 10, 2017

Duplicate of #16874.

@mhegazy mhegazy added the Duplicate An existing issue was already created label Nov 10, 2017
@ORESoftware
Copy link
Author

cool +1

@typescript-bot
Copy link
Collaborator

Automatically closing this issue for housekeeping purposes. The issue labels indicate that it is unactionable at the moment or has already been addressed.

@microsoft microsoft locked and limited conversation to collaborators Jun 14, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Duplicate An existing issue was already created
Projects
None yet
Development

No branches or pull requests

3 participants