swift
9b8d1bad - Restore decoder state after throwing on decode

Comment changes are shownComment changes are hidden
Commit
7 years ago
Restore decoder state after throwing on decode Resolve SR-6408 by restoring the JSON/PlistDecoder stack if an error is thrown after a container was pushed during encode.
Author
Itai Ferber
Committer
Itai Ferber
Parents
  • stdlib/public/SDK/Foundation
    • File
      JSONEncoder.swift
    • File
      PlistEncoder.swift
  • test/stdlib
    • File
      TestJSONEncoder.swift
    • File
      TestPlistEncoder.swift