-
Notifications
You must be signed in to change notification settings - Fork 196
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(sdk): revert lift/permissions errors are not caught in simulator (#…
…6125) Reverts #6079 due to a bug with hot-reloading in wing console. To reproduce: ```ts // main.w bring cloud; let api = new cloud.Api(); class Code { extern "search.js" inflight pub static handler(event: Json, ctx:Json): Json; } api.get("/search", inflight (req) => { return { status: 200, body: "Hello " }; let event = MutJson {}; let ctx = MutJson {}; let result = Code.handler(event, ctx); return { }; }); ``` ```js //search.js export const handler = async (event, ctx) => { event.success = true; return { status: 200, body: JSON.stringify(event), } }; ```
- Loading branch information
1 parent
0cdff2b
commit 083f995
Showing
84 changed files
with
301 additions
and
4,314 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,4 +50,4 @@ if util.env("WING_TARGET") == "sim" { | |
assert(startCounter.peek() == 0); | ||
assert(b.get(status) == stopped); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.